BigList Constructor (BigList, Int32)

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Creates a new BigList that is several copies of list.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public BigList(
	BigList<T> list,
	int copies
)
Visual Basic (Declaration)
Public Sub New ( _
	list As BigList(Of T), _
	copies As Integer _
)
Visual C++
public:
BigList (
	BigList<T>^ list, 
	int copies
)

Parameters

list
BigList<(Of <T>)>
The BigList to copy.
copies
Int32
Number of copies of the collection to use.

Remarks

Creating K copies of a BigList takes time O(log K), and O(log K) additional memory, since the storage for the items of the two lists is shared. However, changing either list will take additional time and memory. Portions of the list are copied when they are changed.

Exceptions

ExceptionCondition
System..::ArgumentNullExceptionlist is null.

See Also